/**
 * Created with IntelliJ IDEA.
 * User: render
 * Date: 12-11-19
 * Time: 上午10:11
 * To change this template use File | Settings | File Templates.
 */

fl.runScript(fl.configURI + "jsfl/core.jsfl");

function shareItems(share, type){
    var its = $('lib').t(type).get();
    var l = lib();
    l.selectNone();
    if(share){
        its.forEach(function(i){
            l.selectItem(i.name);
            l.setItemProperty('sourceAutoUpdate', true);
        });
    }
    else{
        its.forEach(function(i){
            l.selectItem(i.name);
            l.setItemProperty('sourceAutoUpdate',false);
        });
    }
}
(function(){
//    shareItems(false, 'mc');
    shareItems(true, 'mc');
//    var l = lib();

//    l.selectAll();
//    l.setItemProperty('sourceAutoUpdate',false);
})();